#include "Common.h"
#include "Game/Game.h"
#include "Render/Render.h"
#include "Script/ScriptVM.h"

int main()
{
	Log::init("uniwars.log");
	LOG_DEBUG("Uniwars started\n");
	
	if (!Render::init("uniwars", 800, 600))
		return 1;
	
	if (!ScriptVM::init())
		return 2;
	
	ScriptVM::doFile("data/scripts/main.lua");
	
	ScriptVM::free();
	Render::free();
	Log::free();
	
	return 0;
}
